﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using sqlDALgen;
using System.Xml;

namespace codewriter.Renderers
{
    public class StaticRenderer : IRenderer
    {
        private readonly XmlNode _node;

        public static IRenderer Get(XmlNode node)
        {
            return new StaticRenderer(node);
        }

        public StaticRenderer(XmlNode node)
        {
            _node = node;
        }

        public String Render(TemplateData data)
        {
            return _node.InnerText;
        }

        public string FileName
        {
            get { throw new NotImplementedException(); }
        }
    }
}
